/**
 * @author xkh
 * @date 2019-12-05 17:22
 */
package com.itheima.listener;

import com.alibaba.dubbo.common.logger.Logger;
import com.alibaba.dubbo.common.logger.LoggerFactory;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.alibaba.fastjson.JSON;
import com.itheima.pojo.OrderSetting;

import java.util.ArrayList;
import java.util.List;

public class OrderSettingListener extends AnalysisEventListener<OrderSetting> {
    private List<OrderSetting> list = new ArrayList<>();

    public List<OrderSetting> getList() {
        return list;
    }

    public void setList(List<OrderSetting> list) {
        this.list = list;
    }

    @Override
    public void invoke(OrderSetting orderSetting, AnalysisContext analysisContext) {
        list.add(orderSetting);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
    }
}
